package com.unionpay.mobile.android.pboctransaction.remoteapdu;

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;
import com.unionpay.mobile.android.utils.h;
import com.unionpay.mobile.tsm.connect.IRemoteApdu;
import com.unionpay.mobile.tsm.connect.IRemoteApdu.Stub;

final class b
  implements ServiceConnection
{
  b(a parama)
  {
  }

  public final void onServiceConnected(ComponentName paramComponentName, IBinder paramIBinder)
  {
    h.a("plugin-tsm", "mConnection.onServiceConnected()");
    try
    {
      a.a(this.a, IRemoteApdu.Stub.asInterface(paramIBinder));
      a.b(this.a).registerCallback(a.a(this.a));
      a.b(this.a).init();
      return;
    }
    catch (Exception localException)
    {
      while (this.a.a == null);
      this.a.a.b();
    }
  }

  public final void onServiceDisconnected(ComponentName paramComponentName)
  {
    h.a("plugin-tsm", "mConnection.onServiceDisconnected()");
    a.a(this.a, null);
    if (this.a.a != null)
      this.a.a.b();
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.unionpay.mobile.android.pboctransaction.remoteapdu.b
 * JD-Core Version:    0.6.2
 */